<?php

class Form_Registration extends Zend_Form{
    
    
    public function _createElements(){
        $email = new Zend_Form_Element_Text('email');
        $email->setRequired(true);
        $email->addValidator('NotEmpty',true, array('messages' => array(Zend_Validate_NotEmpty::IS_EMPTY => _("The field email is empty"))))
                ->addValidator('EmailAddress',false)
                ->setFilters(array('StringTrim', 'StringToLower', 'StripTags'));
        
    }
    
    
}
?>
